#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <pthread.h>

int main(int argc, char const *argv[])
{
    struct sockaddr_in server_addr;
    // struct in_addr server_in_addr;
    // in_addr_t saddr;
    printf("ip in hex: %X %X %X %X\n", 192, 168, 31, 12);
    inet_pton(AF_INET, "192.168.31.12", &server_addr.sin_addr);
    printf("inet_pton convert:0x%X\n", server_addr.sin_addr.s_addr);
    return 0;
}
